# -*- coding:utf-8 -*-
# @Time: 2020/9/19 16:23
# @Author: 周铖鑫
# @Description：image
# @File: UseImage.py
import  matplotlib.pyplot as plt
import numpy as np
#each point represents a pixel
a=np.array([0.35651511,0.5451321,0.1654213,
                    0.4648461,0.65646,0.45644656,
                    0.454646,0.7959562,0.23265464]).reshape(3,3)
#lower-upper
#lower表示从下往上排列
plt.imshow(a,interpolation='nearest',cmap='bone',origin='lower')
#颜色条的压缩
plt.colorbar(shrink=0.8)

plt.yticks(())
plt.xticks(())
plt.show()